home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group93c.txt
/
000125_icon-group-sender _Thu Dec 16 17:33:48 1993.msg
< prev
next >
Wrap
Internet Message Format
|
1994-02-02
|
1KB
Received: by cheltenham.cs.arizona.edu; Thu, 16 Dec 1993 23:04:45 MST
Date: Thu, 16 Dec 1993 17:33:48 +0700
From: gmt (Gregg Townsend)
Message-Id: <9312170033.AA01119@owl.cs.arizona.edu>
To: icon-group, norm@ora.com
Subject: Re: Multiple fonts in vidgets?
Content-Length: 1119
Status: R
Errors-To: icon-group-errors@cs.arizona.edu
Date: 13 Dec 93 18:56:28 GMT
From: Norman Walsh
Is it possible to create vidgets with different fonts? For example, I
would like to use one font for button labels, another for messages,
another for labels and (yet) another for label entries.
The trick is to use a new binding for those vidgets. Below is a simplified
example without error checking that creates buttons with different fonts.
Gregg Townsend / Computer Science Dept / Univ of Arizona / Tucson, AZ 85721
+1 602 621 4325 gmt@cs.arizona.edu 110 57 16 W / 32 13 45 N / +758m
------------------------------------------------------------------------------
link vidgets, vbuttons
procedure main()
local win, root
win := open("buttons", "x")
root := Vroot_frame(win)
Vbutton(root, 10, 10, win, "one", cb, 1)
Vbutton(root, 10, 40, XBind(win, "font=helvetica-bold-14"), "two", cb, 2)
Vbutton(root, 10, 70, XBind(win, "font=palatino-roman-14"), "three", cb, 3)
Vbutton(root, 10,100, win, "four", cb, 4)
VResize(root)
GetEvents(root)
end
procedure cb(vid, val)
write("button ", vid.id)
end